package com.hssoftvn.android.apps.callmessmoneycontroller.util;

public class OpenCellIDResponse{
	double lat; //latitude
	double lon; //longitude
	int mcc;		//integer	Mobile country code	no
	int mnc;		//integer	Mobile network code or system identifier	no
	int lac;		//integer	Local area code, tracking area code or network id	no
	public int getLac() {
		return lac;
	}
	public void setLac(int lac) {
		this.lac = lac;
	}
	int cellid;		//integer	Cell id or base station id	no
	String radio; 		//<radio>	string	You can specifiy GSM, UMTS, LTE or CDMA as the radio of returned cell. Otherwise first matched cell will be returned.	yes
	String format;		//<format>	string	You can specifiy xml or json as output. Default is xml.	yes
	
	int averageSignalStrength;
	int range;
	int samples;
	/*
	 * 	changeable=1: 
	 * 		the GPS position of the cell tower has been calculated from all available measurements
	 * 	changeable=0:
	 * 		the GPS position of the cell tower is precise; no measurements have been used to calculate it.
	*/
	int changable;
	int sid;	//integer	System identifier; only for CDMA
	int nid;	//integer	Network id; only for CDMA
	int bid;	//integer	Base station id; only for CDMA
	
	
	public void setLat(double _lat){
		lat = _lat;
	}
	public double getLat(){return lat;}
	public double getLon() {
		return lon;
	}
	public void setLon(double lon) {
		this.lon = lon;
	}
	
	public int getMcc() {
		return mcc;
	}
	public void setMcc(int mcc) {
		this.mcc = mcc;
	}
	public int getMnc() {
		return mnc;
	}
	public void setMnc(int mnc) {
		this.mnc = mnc;
	}
	public int getCellid() {
		return cellid;
	}
	public void setCellid(int cellid) {
		this.cellid = cellid;
	}
	public String getRadio() {
		return radio;
	}
	public void setRadio(String radio) {
		this.radio = radio;
	}
	public int getAverageSignalStrength() {
		return averageSignalStrength;
	}
	public void setAverageSignalStrength(int averageSignalStrength) {
		this.averageSignalStrength = averageSignalStrength;
	}
	public int getRange() {
		return range;
	}
	public void setRange(int range) {
		this.range = range;
	}
	public int getSamples() {
		return samples;
	}
	public void setSamples(int samples) {
		this.samples = samples;
	}
	public int getChangable() {
		return changable;
	}
	public void setChangable(int changable) {
		this.changable = changable;
	}
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public int getNid() {
		return nid;
	}
	public void setNid(int nid) {
		this.nid = nid;
	}
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	String errorInfo=null;
	int errorCode;
	public String getErrorInfo() {
		return errorInfo;
	}
	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public boolean hasError(){
		return getErrorInfo()!=null;
	}
}

